package com.dto.aftersales;


import com.baomidou.mybatisplus.annotation.TableField;
import com.config.CustomLocalDateTimeDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("新增售后问题请求参数")
public class AfterSalesDTO {

    @ApiModelProperty(value = "售后问题ID")
    private Long id;

    @ApiModelProperty(value = "售后问题编号（必填）")
    private String orderNumber;

    @ApiModelProperty(value = "客户公司Id")
    private Long customerId;

    @ApiModelProperty(value = "简要描述（可选）")
    private String description;

    @ApiModelProperty(value = "分配的售后服务人员名称")
    private List<String> receiverName;

    @ApiModelProperty(value = "售后任务开始时间")
    @JsonDeserialize(using = CustomLocalDateTimeDeserializer.class)
    private LocalDateTime startTime;

    @ApiModelProperty(value = "售后任务结束时间")
    @JsonDeserialize(using = CustomLocalDateTimeDeserializer.class)
    private LocalDateTime endTime;

    @ApiModelProperty(value = "售后问题整体状态")
    private String status;

    @ApiModelProperty(value = "项目类型（分为重点和一般作为奖金区分）")
    private String projectType;

    @ApiModelProperty(value = "服务天数")
    private Double serviceDays;

    @ApiModelProperty(value = "差旅费")
    @TableField("travel_expense")
    private Double travelExpense;

}